/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.common.utils.enums;

/**
 * @description
 *
 * @author rening
 * @version v1.0
 *
 * @2013-7-22
 *
 */
public enum AccountType {
	Normal("n");

	private String code;
	
	AccountType(String code){
		this.code = code;
	}
	
	public String getValue(){
		return this.code;
	}
	
	public String toString(){
		return this.code;
	}
	
	public static AccountType getByCode(String code){
		if(code == null){
			return null;
		}
		
		if("n".equals(code.toLowerCase())){
			return Normal;
		} else {
			return null;
		}
	}
}
